Solving logarithmic equations